home *** CD-ROM | disk | FTP | other *** search
/ Palm Utilities / Palm_Utilities_CD-ROM_2001_2001.iso / files / internet misc / XML PalmPilot applications 1.0 / XTPP-latest.exe / Pilot / send.bat < prev    next >
Encoding:
DOS Batch File  |  1999-11-22  |  803 b   |  54 lines

  1. @echo off
  2. rem Batch file for running send.xst
  3. set email=
  4. set rcpt=
  5. set mailserver=
  6. set surname=
  7. set firstname=
  8.  
  9. if '%1' == '' goto usage
  10. if '%1' == '-h' goto usage
  11. set email=%1
  12.  
  13. if '%2' == '' goto usage
  14. set rcpt=%2
  15.  
  16. if '%3' == '' goto usage
  17. set mailserver=%3
  18.  
  19. if '%4' == '' goto do
  20. if not '%4' == '-f' if not '%4' == '-s' goto usage
  21. if '%4' == '-f' goto f
  22. if '%4' == '-s' goto s
  23. echo This should not happen
  24. goto exit
  25.  
  26. :f
  27. set firstname=%5
  28. if '%6' == '' goto do
  29. if '%6' == '-s' goto s2
  30. goto usage
  31.  
  32. :s
  33. set surname=%5
  34. if '%6' == '' goto do
  35. if '%6' == '-f' goto f2
  36. goto usage
  37.  
  38. :f2
  39. set firstname=%7
  40. goto do
  41.  
  42. :s2
  43. set surname=%7
  44. goto do
  45.  
  46. :usage
  47. echo Usage: send email rcpt mailserver [-f firstname] [-s surname]
  48. goto exit
  49.  
  50. :do
  51. ..\apps\xtract send.xst
  52.  
  53. :exit
  54.